<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
	<script src="/admin/public/html5shiv.min.js"></script>
	<script src="/admin/public/respond.min.js"></script>
<![endif]-->
<!-- Bootstrap core CSS -->
    	<link href="../newTemplate/css/bootstrap.min.css" rel="stylesheet"/>
    	<!-- <link href="../newTemplate/css/animate.css" rel="stylesheet"/>页面滑动 -->	
	    <link href="../newTemplate/css/inspinia.css" rel="stylesheet"/>
	    <style>
	    	.icheckbox_square-green{
	    		float:left;
	    	}
	    	.form-horizontal input,.form-horizontal select{
	    		margin-left:0;
	    	}
	    	
	    	#wrapper {
			    width: 100%;
			    height: 100%;
			}
	    </style>
<title>信息管理系统</title>
</head>
<body>
	<div id="wrapper" class="container">
		<div class="wrapper wrapper-content animated fadeInRight">
            <h3><strong>用户获取开门二维码时间配置</strong></h3>
<div class="right_box">
    <div style="border:none;box-shadow:none;" class="right_one row">
        <div class="col-md-12 col-sm-12 col-xs-12" style="float:left;">
            <div class="form-horizontal">
                <div class="tabs-container">
                    <div class="tab-content">
                     <form action="" method="post" id="door">
                        <div id="tab-1" class="tab-pane active">
                            <div class="panel-body" >
                                <div class="form-group">
                                    <label class="col-lg-2 control-label"><span style="color:#cc5965;"></span>开课前多长时间(分钟)：</label>
                                    <div class="col-lg-9">
							 			<input class="form-control" type="text" data-val="start" name="start" value="${start }" onkeyup="value=value.replace(/[^0-9]/g,&#39;&#39;);"/><span style="float:left;margin:8px;"></span>
                                        <span class="field-validation-valid" data-valmsg-for="Title" data-valmsg-replace="true"></span>
                                    </div>
                                </div>
                                <div class="form-group"  >
                                    <label class="col-lg-2 control-label"><span style="color:#cc5965;"></span>开课后多长时间(分钟)：</label>
                                    <div class="col-lg-9">
										<input class="form-control" type="text" data-val="end" name="end" value="${end }" onkeyup="value=value.replace(/[^0-9]/g,&#39;&#39;);"/><span style="float:left;margin:8px;"></span>
                                        <span class="field-validation-valid" data-valmsg-for="Title" data-valmsg-replace="true"></span>
                                    </div>
                                </div> 
                            </div>
                        </div>
                        <div class="col-sm-4 col-sm-offset-2">
	                        <input type="button" onclick="save();" value="保存" style="width:105px;height:34px;" class="btn btn-success"/>
	                    </div>
                         </form>
                         </div>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <input type="hidden" id="Content" name="Content"/>
         </div>
        </div>
    </div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
            <h3><strong>教练获取开门二维码时间配置</strong></h3>
<div class="right_box">
    <div style="border:none;box-shadow:none;" class="right_one row">
        <div class="col-md-12 col-sm-12 col-xs-12" style="float:left;">
            <div class="form-horizontal">
                <div class="tabs-container">
                    <div class="tab-content">
                     <form action="" method="post" id="doorJL">
                        <div id="tab-1" class="tab-pane active">
                            <div class="panel-body" >
                                <div class="form-group">
                                    <label class="col-lg-2 control-label"><span style="color:#cc5965;"></span>开课前多长时间(分钟)：</label>
                                    <div class="col-lg-9">
							 			<input class="form-control" type="text" data-val="jlStart" name="jlStart" value="${jlStart }" onkeyup="value=value.replace(/[^0-9]/g,&#39;&#39;);"/><span style="float:left;margin:8px;"></span>
                                        <span class="field-validation-valid" data-valmsg-for="Title" data-valmsg-replace="true"></span>
                                    </div>
                                </div>
                                <div class="form-group"  >
                                    <label class="col-lg-2 control-label"><span style="color:#cc5965;"></span>开课后多长时间(分钟)：</label>
                                    <div class="col-lg-9">
										<input class="form-control" type="text" data-val="jlEend" name="jlEend" value="${jlEend }" onkeyup="value=value.replace(/[^0-9]/g,&#39;&#39;);"/><span style="float:left;margin:8px;"></span>
                                        <span class="field-validation-valid" data-valmsg-for="Title" data-valmsg-replace="true"></span>
                                    </div>
                                </div> 
                            </div>
                        </div>
                        <div class="col-sm-4 col-sm-offset-2">
	                        <input type="button" onclick="saveJl();" value="保存" style="width:105px;height:34px;" class="btn btn-success"/>
	                    </div>
                         </form>
                         </div>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <input type="hidden" id="Content" name="Content"/>
         </div>
        </div>
    </div>
</div>
 </div>
	<script src="../newTemplate/js/jquery-2.1.1.js"></script>
	<script src="../newTemplate/js/bootstrap.min.js"></script>
	<!--<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
	<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>-->
    <!--<script src="js/inspinia.js"></script>-->
	<script src="../newTemplate/js/plugins/pace/pace.min.js"></script>
<script>
function save(){
	$.ajax({
		type:"post",
		data:$("#door").serialize(),
		url:"/admin/system/upDoor",
		dataType : "json",
		async:false,
		success:function(data){
			alert(data.msg);
			window.location.href="/admin/system/openDoor";
		},
		error:function(data){
			alert("失败");
		}
	}) 
}
function saveJl(){
	$.ajax({
		type:"post",
		data:$("#doorJL").serialize(),
		url:"/admin/system/doorJL",
		dataType : "json",
		async:false,
		success:function(data){
			alert(data.msg);
			window.location.href="/admin/system/openDoor";
		},
		error:function(data){
			alert("失败");
		}
	}) 
}
</script>
</body>
</html>
